package cn.zut.hhr.class1.entity;

import java.io.Serializable;
import java.util.Arrays;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author hhr
 * @since 2021-04-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class SysPermission implements Serializable {

    private static final long serialVersionUID = 1L;

    private Boolean available;

    private String name;

    private Long parentId;

    private String parentIds;

    private String permission;

    private String resourceType;

    private String url;

    private List permissions;

    public List getPermissions() {
        return Arrays.asList(this.permission.trim().split("|"));
    }
    public void setPermissions(List permissions) {
        this.permissions = permissions;
    }


}
